package com.py.chat.client.businese;

import com.py.chat.proto.IBusineseHandle;
import com.py.net.client.input.CTSRegistBuilder;
import com.py.net.client.input.IInputBuilder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import com.google.protobuf.MessageLite;
import com.py.chat.UI.UI;
import com.py.chat.client.ChatClient;
import com.py.chat.proto.ChatProbuf.STCChatRet;
import com.py.chat.proto.ChatProbuf.STCRegistRet;
import com.py.chat.proto.ChatProbuf.STCRegistRetOrBuilder;

public class ClientRegistRetHandle extends IBusineseHandle<STCRegistRet> {

	@Override
	public MessageLite handle(STCRegistRet msg) {
		// TODO Auto-generated method stub
		String message = msg.getMsg();
		int status = msg.getStatus();
		UI.msgUI(message);
		//TODO 注册失败 
		if(status==0){
			// do nothing
		}else{
			// do nothing
		}

		return null;
	}
}
